package licode.unisop.realm.application.exception;

import licode.unisop.unilite.result.UniResultCode;

/**
 * 定义认证模块的错误码
 * 用户模块的错误码开头为511
 *
 * @author WR
 */
public class UserErrorCode {
    public static UniResultCode USER_NOT_EXIST = new UniResultCode(511002, "用户不存在");
    public static UniResultCode USER_INVALID_PROVIDER = new UniResultCode(511003, "无效领域信息！");
    public static UniResultCode USER_INVALID_ACCOUNT = new UniResultCode(511020, "无效用户账号！");
    public static UniResultCode USER_ACCOUNT_EXIST = new UniResultCode(511021, "用户账号已存在！");
    public static UniResultCode USER_DONT_EDIT = new UniResultCode(511022, "用户不允许编辑！");
    public static UniResultCode USER_IDENTITY_NOT_EXIST = new UniResultCode(511023, "用户认证信息不存在！");
    public static UniResultCode USER_WRONG_PASSWORD = new UniResultCode(511024, "旧密码不正确，请重新输入旧密码！");
    public static UniResultCode REALM_HAS_ASSIGN_TO_PLATFORM = new UniResultCode(511025, "平台已关联其他领域！");
}
